Method for controlling camera and electronic device therefor

ABSTRACT

Various embodiments of the present invention relate to an apparatus and a method for controlling a plurality of cameras in an electronic device. Herein, the electronic device comprises: a first camera; a second camera set to have an angle of view included in an angle of view of the first camera; a display; and a processor, wherein the processor may be configured to display, on the display, a first image acquired through the first camera of the plurality of cameras; detect information corresponding to the second camera from the first image; activate the second camera, when it is determined to activate the second camera on the basis of the information corresponding to the second camera; and display, on the display, at least one image corresponding to activation of the first camera and the second camera. Other embodiments are also possible.

This application is a continuation application of prior application Ser.No. 16/328,155, filed on Feb. 25, 2019, which is a National Stageapplication under 35 U.S.C. § 371 of an International application numberPCT/KR2017/006445, filed on Jun. 20, 2017, which is based on and claimspriority under 35 U.S.C § 119(a) of a Korean patent application number10-2016-0111577, filed on Aug. 31, 2016, in the Korean IntellectualProperty Office, the disclosure of which is incorporated by referenceherein in its entirety

TECHNICAL FIELD

The disclosure relates to a method and apparatus for controlling aplurality of cameras in an electronic device.

BACKGROUND ART

With the development of information and communication technologies andsemiconductor technologies, various types of electronic devices havedeveloped into multimedia devices that provide various multimediaservices. The multimedia service may include at least one from among avoice call service, a message service, a broadcasting service, awireless Internet service, a camera service, a music reproductionservice, and the like.

An electronic device may provide various camera services that a userdesires using multiple cameras. For example, the electronic device mayobtain images of various angles of view using multiple cameras disposedin the back side of the electronic device.

DISCLOSURE OF INVENTION Technical Problem

An electronic device may obtain an image of an angle of view which auser needs, using multiple cameras having different angles of view. Forexample, the electronic device may drive at least one cameracorresponding to a user input from among the multiple cameras, so as toobtain an image corresponding to an angle of view of the correspondingcamera. However, when the electronic device changes a driving camera onthe basis of a user input, a delay associated with activation of acamera may occur.

Also, when the electronic device operates multiple cameras in parallel,the multiple cameras need to maintain an activated state continuouslyand thus, the amount of power consumed by the electronic device mayincrease, which is a drawback.

According to various embodiments of the disclosure, there is provided amethod and apparatus by which an electronic device provides amulti-camera service using multiple cameras.

Solution to Problem

According to various embodiments of the disclosure, an electronic devicemay include: a first camera; a second camera having an angle of view setto be included in an angle of view of the first camera; a display; and aprocessor, wherein the processor is configured to perform: displaying afirst image obtained via the first camera on the display; detectinginformation corresponding to the second camera from the first image;activating the second camera when determining to activate the secondcamera based on the information corresponding to the second camera; andadditionally displaying a second image obtained via the second camera onthe display.

According to various embodiments of the disclosure, an operation methodof an electronic device may include: displaying a first image obtainedvia a first camera of the electronic device on a display of theelectronic device; detecting, from the first image, informationcorresponding to a second camera configured to have an angle of viewincluded in an angle of view of the first camera; activating the secondcamera when determining to activate the second camera based on theinformation corresponding to the second camera; and additionallydisplaying a second image obtained via the second camera on the display.

Advantageous Effects of Invention

An electronic device and an operation method therefor according tovarious embodiments may selectively activate a second camera currentlyoperating in an idle mode, on the basis of an image obtained via a firstcamera, whereby a delay associated with activation of the second cameramay be reduced and the amount of power consumed to provide amulti-camera service may be decreased.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1A is a perspective front view of an electronic device according tovarious embodiments of the disclosure;

FIG. 1B is a perspective back view of an electronic device according tovarious embodiments of the disclosure;

FIG. 2A is a diagram illustrating an electronic device in a networkenvironment according to various embodiments of the disclosure;

FIG. 2B is a block diagram of an electronic device including multiplecameras according to various embodiments of the disclosure;

FIG. 2C is a diagram illustrating the configuration of data capturedusing multiple cameras according to various embodiments of thedisclosure;

FIG. 3 is a block diagram of an electronic device according to variousembodiments of the disclosure;

FIG. 4 is a flowchart illustrating a process of providing a multi-cameraservice by an electronic device according to various embodiments of thedisclosure;

FIG. 5 is a flowchart illustrating a process of controlling multiplecameras by an electronic device according to various embodiments of thedisclosure;

FIG. 6 is a flowchart illustrating a process of controlling amulti-camera service on the basis of the distance to a subject by anelectronic device according to various embodiments of the disclosure;

FIG. 7 is a diagram illustrating the configuration for controlling amulti-camera service on the basis of the distance to a subject by anelectronic device according to various embodiments of the disclosure;

FIG. 8 is a flowchart illustrating a process of providing a multi-cameraservice on the basis of face detection information by an electronicdevice according to various embodiments of the disclosure;

FIGS. 9A to 9H are diagrams illustrating screen configurations forproviding a multi-camera service on the basis of face detectioninformation by an electronic device according to various embodiments ofthe disclosure;

FIG. 10 is a flowchart illustrating a process of capturing an image byan electronic device according to various embodiments of the disclosure;

FIGS. 11A to 11F are diagrams illustrating images captured by anelectronic device according to various embodiments of the disclosure;

FIG. 12 is a flowchart illustrating a process of providing amulti-camera service on the basis of the brightness value of an image byan electronic device according to various embodiments of the disclosure;

FIGS. 13A and 13B are diagrams illustrating screen configurations forproviding a multi-camera service on the basis of backlight informationof a subject by an electronic device according to various embodiments ofthe disclosure;

FIGS. 14A and 14B are diagrams illustrating screen configurations forproviding a multi-camera service on the basis of the difference inbrightness value in an image by an electronic device according tovarious embodiments of the disclosure;

FIG. 15 is a flowchart illustrating a process of providing amulti-camera service on the basis of the location of an object by anelectronic device according to various embodiments of the disclosure;

FIGS. 16A and 16B are diagrams illustrating screen configurations forproviding a multi-camera service on the basis of focus settinginformation associated with a second camera area according to variousembodiments of the disclosure;

FIGS. 17A and 17B are diagrams illustrating screen configurations forproviding a multi-camera service on the basis of movement information ofan object on which focus is set according to various embodiments of thedisclosure;

FIG. 18 is a flowchart illustrating a process by which an electronicdevice sets a second camera area in an image obtained via a first cameraaccording to various embodiment of the disclosure;

FIG. 19 is a flowchart illustrating a process by which an electronicdevice controls the size of a second camera area in an image obtainedvia a first camera according to various embodiment of the disclosure;

FIGS. 20A and 20B are diagrams illustrating screen configurations forcontrolling the size of a second camera area in an image obtained via afirst camera by an electronic device according to various embodiment ofthe disclosure;

FIG. 21 is a flowchart illustrating a process by which an electronicdevice determines the size of a second camera area on the basis of thesize of an object on which focus is set according to various embodimentsof the disclosure;

FIG. 22 is a flowchart illustrating a process of controlling a zoomfunction by an electronic device according to various embodiments of thedisclosure;

FIGS. 23A and 23B are diagrams illustrating screen configurations forcontrolling a zoom function of a second camera by an electronic deviceaccording to various embodiments of the disclosure;

FIGS. 24A to 24C are diagrams illustrating screen configurations forcontrolling a zoom function of a first camera by an electronic deviceaccording to various embodiments of the disclosure; and

FIGS. 25A and 25B are diagrams illustrating screen configurations forchanging a display area of a camera by an electronic device according tovarious embodiments of the disclosure.

BEST MODE FOR CARRYING OUT THE INVENTION

Hereinafter, various embodiments of the disclosure will be describedwith reference to the accompanying drawings. The embodiments and theterms used therein are not intended to limit the technology disclosedherein to specific forms, and should be understood to include variousmodifications, equivalents, and/or alternatives to the correspondingembodiments. In describing the drawings, similar reference numerals maybe used to designate similar constituent elements. A singular expressionmay include a plural expression unless they are definitely different ina context.

As used herein, singular forms may include plural forms as well unlessthe context clearly indicates otherwise. The expression “a first”, “asecond”, “the first”, or “the second” used in various embodiments of thedisclosure may modify various components regardless of the order and/orthe importance but does not limit the corresponding components. When anelement (e.g., first element) is referred to as being “(functionally orcommunicatively) connected,” or “directly coupled” to another element(second element), the element may be connected directly to the anotherelement or connected to the another element through yet another element(e.g., third element).

The expression “configured to” as used in various embodiments of thedisclosure may be interchangeably used with, for example, “suitablefor”, “having the capacity to”, “designed to”, “adapted to”, “made to”,or “capable of” in terms of hardware or software, according tocircumstances. Alternatively, in some situations, the expression “deviceconfigured to” may mean that the device, together with other devices orcomponents, “is able to”. For example, the phrase “processor adapted (orconfigured) to perform A, B, and C” may mean a dedicated processor(e.g., embedded processor) only for performing the correspondingoperations or a generic-purpose processor (e.g., Central Processing Unit(CPU) or Application Processor (AP)) that can perform the correspondingoperations by executing one or more software programs stored in a memorydevice.

An electronic device according to various embodiments of the disclosuremay include at least one of, for example, a smart phone, a tabletPersonal Computer (PC), a mobile phone, a video phone, an electronicbook reader (e-book reader), a desktop PC, a laptop PC, a netbookcomputer, a workstation, a server, a Personal Digital Assistant (PDA), aPortable Multimedia Player (PMP), a MPEG-1 audio layer-3 (MP3) player, amobile medical device, a camera, and a wearable device. According tovarious embodiments, the wearable device may include at least one of anaccessory type (e.g., a watch, a ring, a bracelet, an anklet, anecklace, a glasses, a contact lens, or a Head-Mounted Device (HMD)), afabric or clothing integrated type (e.g., an electronic clothing), abody-mounted type (e.g., a skin pad, or tattoo), and a bio-implantabletype (e.g., an implantable circuit).

In some embodiments, the electronic device may include at least one of,for example, a television, a Digital Video Disk (DVD) player, an audio,a refrigerator, an air conditioner, a vacuum cleaner, an oven, amicrowave oven, a washing machine, an air cleaner, a set-top box, a homeautomation control panel, a security control panel, a TV box (e.g.,Samsung HomeSync™, Apple TV™, or Google TV™), a game console (e.g.,Xbox™ and PlayStation™), an electronic dictionary, an electronic key, acamcorder, and an electronic photo frame.

In other embodiments, the electronic device may include at least one ofvarious medical devices (e.g., various portable medical measuringdevices (a blood glucose monitoring device, a heart rate monitoringdevice, a blood pressure measuring device, a body temperature measuringdevice, etc.), a Magnetic Resonance Angiography (MRA), a MagneticResonance Imaging (MRI), a Computed Tomography (CT) machine, and anultrasonic machine), a navigation device, a Global Positioning System(GPS) receiver, an Event Data Recorder (EDR), a Flight Data Recorder(FDR) , a Vehicle Infotainment Devices, an electronic devices for a ship(e.g., a navigation device for a ship, and a gyro-compass), avionics,security devices, an automotive head unit, a robot for home or industry,an automatic teller's machine (ATM) in banks, point of sales (POS) in ashop, or internet device of things (e.g., a light bulb, various sensors,electric or gas meter, a sprinkler device, a fire alarm, a thermostat, astreetlamp, a toaster, a sporting goods, a hot water tank, a heater, aboiler, etc.).

According to some embodiments, an electronic device may include at leastone of a part of furniture or a building/structure, an electronic board,an electronic signature receiving device, a projector, and various typesof measuring instruments (e.g., a water meter, an electric meter, a gasmeter, a radio wave meter, and the like). In various embodiments, theelectronic device may be flexible, or may be a combination of one ormore of the aforementioned various devices. The electronic deviceaccording to embodiments of the disclosure is not limited to theabove-described devices. In the disclosure, the term “user” may indicatea person using an electronic device or a device (e.g., an artificialintelligence electronic device) using an electronic device.

FIG. 1A is a perspective front view of an electronic device according tovarious embodiments of the disclosure. FIG. 1B is a perspective backview of an electronic device according to various embodiments of thedisclosure.

Referring to FIGS. 1A and 1B, an electronic device 100 may include ahousing 110. According to an embodiment, the housing 110 may includemetallic members or may include both metallic members and nonmetallicmembers. According to an embodiment, a display 101 including a window(e.g., a front window or a glass plate) may be disposed in the frontside (e.g., a first side) of the housing 110. According to anembodiment, the electronic device 100 may include a receiver (speaker)102 to output the voice of a partner. The receiver 102 may be disposedin the housing 110. According to an embodiment, the electronic device100 may include a microphone device 103 to transmit the voice of a userto a partner. The receiver 103 may be disposed in the housing 110.According to an embodiment, the electronic device 100 may include atleast one key input device disposed in the housing 110. For example, thekey input device may include a home key button 114 disposed in the frontside of the housing 110, touch pads 115 disposed on the right and leftof the home key button 114, and a side key button 116 disposed in alateral side of the housing 110.

According to one embodiment, components for performing various functionsof the electronic device 100 may be disposed around the receiver 102.For example, the components may include at least one sensor module 104.For example, the sensor module 104 may include at least one of anilluminance sensor (e.g., an optical sensor), a proximity sensor (e.g.,an optical sensor), an infrared sensor, and an ultrasonic sensor. Forexample, the components may include a front camera device 105. Forexample, the components may include an indicator 106 (e.g., an LEDdevice) to enable a user to identify state information of an electronicdevice.

According to an embodiment, a speaker device 108 may be disposed to theside of the microphone device 103. According to an embodiment, aninterface connector port 107 may be disposed to the other side of themicrophone device 103, and may perform data transmission and receptionwith an external device and may receive external power to charge theelectronic device 100. According to an embodiment, an ear-jack hole 109may be disposed to the side of the interface connector port 107.

According to an embodiment, the electronic device 100 may include a backside window 111 disposed in the back side (e.g., a second side) of thehousing. According to an embodiment, a first camera device 112 and asecond camera device 113 may be disposed in the back side window 111.According to an embodiment, at least one electronic component 113 may bedisposed to the side of the first camera device 112 and the secondcamera device 113. For example, the electronic component 113 may includeat least one of an illumination sensor (e.g., an optical sensor), aproximity sensor (e.g., an optical sensor), an infrared sensor, anultrasonic sensor, a heartbeat sensor, and a flash device.

FIG. 2A illustrates an electronic device 201 in a network environment200 according to various embodiments of the disclosure.

Referring to FIG. 2A, the electronic device 201 may include a bus 210, aprocessor 220, a memory 230, an input/output interface 250, a display260, a communication interface 270, and a camera 280. In someembodiments, the electronic device 201 may omit at least one of theelements, or may further include other elements.

The bus 210 may include, for example, a circuit that interconnects theelements 220 to 280 and delivers communication (e.g., a control messageand/or data) between the elements 220 to 280.

The processor 220 may include one or more of a central processing unit(CPU), an application processor (AP), an image signal processor (ISP),and a communication processor (CP). The processor 220, for example, maycarry out operations or data processing relating to control and/orcommunication of at least one other element of the electronic device201.

According to an embodiment, the processor 220 may control driving of asecond camera using an image obtained via a first camera of the camera280. For example, the processor 220 may identify a second camera areaset in at least a part of the image obtained via the first camera. Theprocessor 220 may determine whether to activate the second camera on thebasis of an image attribute of the second camera area. When activationof the second camera is determined, the processor 220 may performcontrol such that the second camera of the camera 280 is activated. Forexample, the image attribute of the second camera area may include atleast one of face detection information of the second camera area,exposure information (a brightness value) of the second camera area, andfocus setting information of the second camera area.

The memory 230 may include volatile and/or non-volatile memory. Thememory 230 may store, for example, instructions or data relevant to atleast one other element of the electronic device 201. According to anembodiment, the memory 230 may store software and/or a program 240. Forexample, the program 240 may include a kernel 241, middleware 243, anapplication programming interface (API) 245, and/or application programs(or “applications”) 247. At least some of the kernel 241, the middleware243, and the API 245 may be referred to as an operating system (OS).

The kernel 241 may control or manage system resources (e.g., the bus210, the processor 220, or the memory 230) used for executing anoperation or function implemented by other programs (e.g., themiddleware 243, the API 245, or the applications 247). Furthermore, thekernel 241 may provide an interface via which the middleware 243, theAPI 245, or the applications 247 may access the individual elements ofthe electronic device 201 to control or manage the system resources.

The middleware 243 may function as, for example, an intermediary forallowing the API 245 or the applications 247 to communicate with thekernel 241 to exchange data. Furthermore, the middleware 243 may processone or more task requests received from the applications 247 accordingto the priorities thereof For example, the middleware 243 may assignpriorities to use the system resources (e.g., the bus 210, the processor220, the memory 230, or the like) of the electronic device 201 to one ormore of the applications 247, and may process the one or more taskrequests. The API 245 is an interface used by the applications 247 tocontrol a function provided from the kernel 241 or the middleware 243,and may include, for example, at least one interface or function (e.g.,an instruction) for file control, window control, image processing,character control, or the like.

The input/output interface 250 may function as, for example, aninterface that can forward commands or data, which are input from a useror an external device, to the other element(s) of the electronic device201.

The display 260 may include, for example, a liquid crystal display(LCD), a light emitting diode (LED) display, an organic light emittingdiode (OLED) display, a micro electro mechanical system (MEMS) display,or an electronic paper display. The display 260 may display, forexample, various types of content (e.g., text, images, videos, icons,and/or symbols) for a user. The display 260 may include a touch screenand may receive, for example, a touch, gesture, proximity, or hoveringinput using an electronic pen or the user's body part.

The communication interface 270 may establish communication, forexample, between the electronic device 201 and an external device (e.g.,a first external electronic device 202, a second external electronicdevice 204, or a server 206). For example, the communication interface270 may be connected to a network 272 via wireless or wiredcommunication to communicate with an external device (e.g., the secondexternal electronic device 204 or the server 206).

The wireless communication may include, for example, cellularcommunication that uses at least one of LTE, LTE-Advance (LTE-A), codedivision multiple access (CDMA), wideband CDMA (WCDMA), universal mobiletelecommunications system (UMTS), wireless broadband (WiBro), globalsystem for mobile communications (GSM), or the like. According to anembodiment, the wireless communication may include, for example, atleast one of Wi-Fi, light fidelity (Li-Fi), Bluetooth, Bluetooth lowenergy (BLE), ZigBee, near field communication (NFC), magnetic securetransmission, radio frequency (RF), and body area network (BAN).According to an embodiment, the wireless communication may include GNSS.The GNSS may be, for example, a global positioning system (GPS), aglobal navigation satellite system (Glonass), a Beidou navigationsatellite system (hereinafter, referred to as “Beidou”), or Galileo (theEuropean global satellite-based navigation system). Hereinafter, in thisdocument, the term “GPS” may be interchangeable with the term “GNSS”.The wired communication may include, for example, at least one of auniversal serial bus (USB), a high definition multimedia interface(HDMI), recommended standard 232 (RS-232), a plain old telephone service(POTS), and the like. The network 272 may include a telecommunicationsnetwork, for example, at least one of a computer network (e.g., a LAN ora WAN), the Internet, and a telephone network.

Each of the first and second external electronic devices 202 and 204 maybe of a type that is the same or different from that of the electronicdevice 201. According to various embodiments, all or some of theoperations executed in the electronic device 201 may be executed inanother electronic device or a plurality of electronic devices (e.g.,the electronic devices 202 and 204 or the server 206). According to anembodiment, when the electronic device 201 has to perform some functionsor services automatically or in response to a request, the electronicdevice 201 may make a request for performing at least some functionsrelating thereto to another device (e.g., the electronic device 202 or204 or the server 206) in addition to, or instead of, performing thefunctions or services. Another electronic device (e.g., the electronicdevice 202 or 204, or the server 206) may execute the requestedfunctions or the additional functions, and may deliver the resultthereof to the electronic device 201. The electronic device 201 mayprovide the received result as it is, or may additionally process thereceived result to provide the requested functions or services. To thisend, for example, cloud computing, distributed computing, orclient-server computing technology may be used.

The camera 280 may collect image information associated with a subject.For example, the camera 280 may include multiple camera modules includedin the electronic device 201. For example, the camera 280 may include afirst camera and a second camera to shoot a subject located in front ofa user. The first camera and the second camera have different angles ofview used for obtaining images, and the angle of view of the secondcamera may overlap at least a part of the angle of view of the firstcamera. Additionally or alternatively, the camera 280 may furtherinclude a camera (e.g., a front camera device) for performing shootingin a self-portrait mode. For example, the camera 280 may include animage sensor such as a charge-coupled device (CCD) sensor, acomplementary metal-oxide-semiconductor (CMOS) sensor, and the like.

FIG. 2B is a block diagram of an electronic device including multiplecameras according to various embodiments of the disclosure.

Referring to FIG. 2B, an electronic device 201 may include a processor220, a display 260, a first camera 282, and a second camera 284.

According to an embodiment, the first camera 282 and the second camera284 may be disposed to be close to each other in one side (e.g., theback side) of the electronic device 201. For example, the first camera282 and the second camera 284 may be disposed to be close to each otherin the vertical direction or in the horizontal direction, in the backside of the electronic device 201. For example, the angle of view of thefirst camera 282 may be set to be wider than the angle of view of thesecond camera 284, and the angle of view of the second camera 284 may beincluded in the angle of view of the first camera 282.

According to an embodiment, when the electronic device 201 operates in amulti-camera mode, the first camera 282 may continuously maintain anactivated state. According to an embodiment, when the electronic device201 operates in the multi-camera mode, the second camera 284 may beselectively activated. For example, when the use of the second camera284 is restricted in the multi-camera mode, the second camera 284 mayoperate in an idle mode. When the processor 220 determines to change thesecond camera 284 to an activation mode, the second camera 284 may bechanged to the activation mode. For example, the idle mode of the secondcamera 284 may include an operation state that maintains the initialsetting for activating the second camera 284, and deactivates an imagesensor of the second camera 284. The initial setting for activating thesecond camera 284 may include generating an instance, allocating memory,reading, from the memory 230, a setting parameter for operating acamera, or the like. The activation mode of the second camera 284 mayinclude an operation state that activates the image sensor of the secondcamera 284 so as to obtain an image.

According to an embodiment, the processor 220 may control driving of thefirst camera 282 and the second camera 284 via a camera driving module222 and an information extracting module 224. For example, when theelectronic device 201 operates in the multi-camera mode, the cameradriving module 222 may perform control such that the first camera 282 isactivated and the second camera 284 operates in the idle mode. Theinformation extracting module 224 may detect an image attribute of asecond camera area from an image obtained via the first camera 282. Thecamera driving module 222 may determine whether to activate the secondcamera 284 on the basis of the image attribute of the second camera areaprovided from the information extracting module 224. For example, theimage attribute of the second camera area may include at least one offace detection information of the second camera area, exposureinformation (a brightness value) of the second camera area, and focusinformation associated with an object included in the second cameraarea. The second camera area may include at least a part correspondingto the angle of view of the second camera 284, in the image obtained viathe first camera 282.

According to an embodiment, the processor 220 may set the second cameraarea in the image obtained via the first camera 282. For example, whenit is detected that an area matching event occurs, the processor 220 maydetect an area corresponding to an image obtained via the second camera284 from the image obtained via the first camera 282. The processor 220may set the area corresponding to the image obtained via the secondcamera 284 in the image obtained via the first camera 282, as the secondcamera area. For example, the area matching event may occurperiodically, or by a user input.

According to an embodiment, the processor 220 may restrict driving ofthe second camera 284 on the basis of the distance to a subject. Forexample, the processor 220 may estimate the distance to an object onwhich focus is set in the image provided from the first camera 282. Forexample, the processor 220 may estimate the distance to an object onwhich focus is set, using the first camera 282 or a separate sensor.When the object on which focus is set exists within a referencedistance, the processor 220 may restrict driving of the second camera284. For example, the processor 220 may perform control using the cameradriving module 222, such that the second camera 284 maintains the idlemode or the second camera 284 is deactivated. Additionally oralternatively, when the object on which focus is set exists within thereference distance from the electronic device 201, the processor 220 maydeactivate the multi-camera mode of the electronic device 201.

According to an embodiment, the processor 220 may capture an image usingat least one of the first camera 282 and the second camera 284 on thebasis of the type of a capture event in the multi-camera mode. Forexample, when it is detected that a first capture event occurs, theprocessor 220 may capture an image using the first camera 282. Forexample, when it is detected that a second capture event occurs, theprocessor 220 may capture an image using the second camera 284. Forexample, when it is detected that a third capture event occurs, theprocessor 220 may capture images using the first camera 282 and thesecond camera 284. In this instance, the processor 220 may store theimage captured via the first camera 282 and the image captured via thesecond camera 284 separately, or may combine them as a single image andstore the image. For example, the processor 220 may classify the typesof capture events on the basis of at least one of a gesture for capture,the strength of pressure, a touch duration, the number of touches, and acapture icon type, and the like.

According to an embodiment, the processor 220 may control the angle ofview of the second camera 284. For example, the processor 220 maycontrol the angle of view of the second camera 284 to correspond to auser input detected via the input/output interface 250. For example, theprocessor 220 may identify an object on which focus is set in the imageprovided from the second camera 284. The processor 220 may control theangle of view of the second camera 284 on the basis of the size of theobject on which focus is set. For example, the processor 220 may performcontrol so as to narrow the angle of view of the second camera 284 tocorrespond to the size of the object on which focus is set in the imageobtained via the second camera 284.

According to an embodiment, the processor 220 may independently controla zoom function of the first camera 282 and the second camera 284 in themulti-camera mode. For example, when the first camera 282 and the secondcamera 284 are activated, the processor 220 may control the display 260so as to display a first image obtained via the first camera 282 and asecond image obtained via the second camera 284. For example, theprocessor 220 may control the display 260 so as to display the secondimage obtained via the second camera 284 in at least a part of the firstimage obtained via the first camera 282. When a user input correspondingto a zoom function is detected in the second camera area of the firstimage, the processor 220 may control the second camera 284 so as toperform the zoom function corresponding to the user input. When a userinput corresponding to a zoom function is detected outside the secondcamera area of the first image, the processor 220 may control the firstcamera 282 so as to perform the zoom function corresponding to the userinput.

The display 260 may display an image provided from at least one of thefirst camera 282 and the second camera 284. For example, when the firstcamera 282 and the second camera 284 are activated, the display 260 mayseparately display a first image obtained via the first camera 282 and asecond image obtained via the second camera 284. For example, thedisplay 260 may display the second image obtained via the second camera284 in at least a part of the first image obtained via the first camera282, like a picture in picture (PIP) manner For example, the display 260may display the first image obtained via the first camera 282 and thesecond image obtained via the second camera 284 in different areas. Forexample, when the second camera 284 operates in the idle mode in themulti-camera mode, the display 260 may display the first image obtainedvia the first camera 282. For example, when only the second camera 284is activated, the display 260 may display the second image obtained viathe second camera 284.

According to various embodiments of the disclosure, when the electronicdevice 201 captures an image using multiple cameras, the electronicdevice 201 may distinguish a first shooting for backward compatibilityand basic reproduction, and a second shooting by using zooming-in/out.For example, the first shooting may modify an image obtained via theimage sensor of the first camera 282 into data (bayer data) in a formfor transmission to a processor for image processing. The first shootingmay include an image capturing sequence that performs image signalprocessing (ISP) of the data (bayer data) obtained from modification,and encodes the same into an image format (e.g., JPEG) as shown in FIG.2C. For example, the second shooting may modify an image obtained viathe image sensor of the second camera 284 into data (bayer data) in aform for transmission to a processor for image processing. The secondshooting performs ISP of data (bayer data) obtained from modification.As shown in FIG. 2C, a first shot image and a second shot image mayinclude an image capturing sequence for encoding the images into asingle image format (e.g., JPEG), as opposed to storing the images asseparate image formats.

FIG. 2C is a diagram illustrating the configuration of data capturedusing multiple cameras according to various embodiments of thedisclosure.

According to an embodiment, when the electronic device 201 capturesimages using multiple cameras in the multi-camera mode, the electronicdevice 201 may store data provided in the structure of FIG. 2C. Forexample, the electronic device 201 may configure information of images(e.g., additional information associated with a plurality of images andmetadata) obtained via multiple cameras in the multi-camera mode, usingan APPn marker code that allows a JPEG extension. For example, acaptured image of the multi-camera mode may include a start of image(SOI) 290 indicating the start of the image, a marker code (APP1) 292and 294 including additional information of the image, a marker code(APPn) 296 to which multiple images captured using multiple cameras areallocated, an image data field 298 including image data obtained via atleast one camera, and an end of image (EOI) 299 indicating the end ofthe image. Additionally or alternatively, image information of themulti-camera mode may have a hierarchical structure using variouszooming-in/out, and may be allocated via a separate space in the samefile, as shown in diagram 296 and 298.

According to an embodiment, metadata of the APP1 field 294 may includevarious parameter information of the multi-camera mode, such as a zoommagnification of an image obtained via the multi-camera mode, offsetdesignation, and the like. For example, the parameter of themulti-camera mode may be expressed by various forms such as an integer,a floating point, an ASCII, and the like. Also, the parameter of themulti-camera mode may be extensible to a tagged image file format(TIFF), an extensible metadata platform (XMP), and the like, as atechnology for exchanging data. According to an embodiment, theelectronic device 201 needs a relatively large amount of memory in orderto store images captured using multiple cameras in the multi-cameramode. Accordingly, the electronic device 201 may need a data compressioncodec suitable for a scenario that utilizes an image captured in themulti-camera mode. For example, images of the multi-camera mode at thesame angle of view may include a lot of overlapping visual componentsbased on a zoom function. Accordingly, the processor 220 may reduce theoverlapping visual properties based on a zoom function, and may changethe configuration to include data having low entropy, whereby the amountof data may be reduced, as shown in diagram 296. For example, theprocessor 220 may use differential pulse-code modulation (DPCM), motionestimation/motion compensation (ME/MC), and the like as a compressiontechnology for reducing the amount of data.

According to an embodiment, the electronic device 201 may efficientlycontrol various scenarios using the single file configuration of themulti-camera mode as shown in FIG. 2C, which is efficient for filemanagement. Also, the electronic device 201 may guarantee backwardcompatibility and may perform reproduction via playback equipment suchas a smart phone, a TV, and the like without any limitation, and maysupport various effects using multiple cameras via various userinterfaces such as a touch input and the like.

FIG. 3 is a block diagram of an electronic device 301 according tovarious embodiments of the disclosure. The electronic device 301 mayinclude, for example, the whole or a part of the electronic device 201illustrated in FIG. 2.

Referring to FIG. 3, the electronic device 301 may include at least oneprocessor (e.g., AP) 310, a communication module 320, a subscriberidentification module 324, a memory 330, a sensor module 340, an inputdevice 350, a display 360, an interface 370, an audio module 380, acamera module 391, a power management module 395, a battery 396, anindicator 397, and a motor 398.

The processor 310 may control a plurality of hardware or softwareelements connected thereto and may perform various data processing andoperations by driving an operating system or an application program. Theprocessor 310 may be implemented as, for example, a system on chip(SoC). According to an embodiment, the processor 310 may further includea graphic processing unit (GPU) and/or an image signal processor (ISP).The processor 310 may also include at least some of the elementsillustrated in FIG. 3 (e.g., a cellular module 321). The processor 310may load, in volatile memory, commands or data received from at leastone of the other elements (e.g., non-volatile memory), may process theloaded commands or data, and may store the result data in thenon-volatile memory.

According to an embodiment, the processor 210 may determine whether toactivate a second camera of the electronic device 301 on the basis of animage attribute of at least a part (second camera area) of an imageobtained via a first camera of the electronic device 301.

The communication module 320 may have a configuration equal or similarto that of the communication interface 270 of FIG. 2. The communicationmodule 320 may include, for example, a cellular module 321, a Wi-Fimodule 323, a Bluetooth module 325, a GNSS module 327, an NFC module328, and an RF module 329.

The cellular module 321 may provide, for example, a voice call, a videocall, a text message service, an Internet service, or the like via acommunication network. According to an embodiment, the cellular module321 may identify and authenticate the electronic device 301 within acommunication network using the subscriber identification module 324(e.g., a SIM card). According to an embodiment, the cellular module 321may perform at least some of the functions that the processor 310 mayprovide. According to an embodiment, the cellular module 321 may includea communication processor (CP).

According to some embodiments, at least some (e.g., two or more) of thecellular module 321, the Wi-Fi module 323, the BT module 325, the GNSSmodule 327, and the NFC module 328 may be included in one integratedchip (IC) or IC package.

The RF module 329 may transmit or receive, for example, a communicationsignal (e.g., an RF signal). The RF module 329 may include, for example,a transceiver, a power amp module (PAM), a frequency filter, a low noiseamplifier (LNA), an antenna, or the like. According to anotherembodiment, at least one of the cellular module 321, the Wi-Fi module323, the BT module 325, the GNSS module 327, and the NFC module 328 maytransmit or receive an RF signal via a separate RF module. Thesubscriber identification module 324 may include, for example, a cardthat includes a subscriber identity module or an embedded SIM, and maycontain unique identification information (e.g., an integrated circuitcard identifier (ICCID)) or subscriber information (e.g., aninternational mobile subscriber identity (IMSI)).

The memory 330 (e.g., the memory 230 of FIG. 2) may include, forexample, an embedded memory 332 or an external memory 334. The embeddedmemory 332 may include, for example, at least one of volatile memory(e.g., DRAM, SRAM, SDRAM, or the like) and non-volatile memory (e.g.,one-time programmable ROM (OTPROM), PROM, EPROM, EEPROM, mask ROM, flashROM, flash memory, a hard disc drive, or a solid state drive (SSD)). Theexternal memory 334 may include a flash drive, for example, a compactflash (CF), a secure digital (SD), a micro-SD, a mini-SD, an extremedigital (xD), a multi-media card (MMC), a memory stick, and the like.The external memory 334 may be functionally or physically connected tothe electronic device 301 via various interfaces.

The sensor module 340 may, for example, measure a physical quantity ordetect the operating state of the electronic device 301, and may convertthe measured or detected information into an electrical signal. Thesensor module 340 may include, for example, at least one of a gesturesensor 340A, a gyro sensor 340B, an atmospheric pressure sensor 340C, amagnetic sensor 340D, an acceleration sensor 340E, a grip sensor 340F, aproximity sensor 340G, a color sensor 340H (e.g., a red, green, and blue(RGB) sensor), a biometric sensor 340I, a temperature/humidity sensor340J, an illumination sensor 340K, and a ultraviolet (UV) sensor 340M.Additionally or alternatively, the sensor module 340 may include, forexample, an e-nose sensor, an electromyography (EMG) sensor, anelectroencephalogram (EEG) sensor, an electrocardiogram (ECG) sensor, aninfrared (IR) sensor, an iris sensor, and/or a fingerprint sensor. Thesensor module 340 may further include a control circuit for controllingone or more sensors included therein. In some embodiments, theelectronic device 301 may further include a processor configured tocontrol the sensor module 340, as a part of or separately from theprocessor 310, and may control the sensor module 340 while the processor310 is in a sleep state. For example, the temperature/humidity sensor340J may include a plurality of temperature sensors disposed indifferent locations.

The input device 350 may include, for example, a touch panel 352, a(digital) pen sensor 354, a key 356, or an ultrasonic input device 358.The touch panel 352 may use, for example, at least one of a capacitivetype, a resistive type, an infrared type, and an ultrasonic type.Furthermore, the touch panel 352 may further include a control circuit.The touch panel 352 may further include a tactile layer to provide atactile reaction to a user. The (digital) pen sensor 354 may include,for example, a recognition sheet that is a part of, or separate from,the touch panel. The key 356 may include, for example, a physicalbutton, an optical key, or a keypad. The ultrasonic input device 358 maydetect ultrasonic waves, which are generated by an input tool, via amicrophone (e.g., a microphone 388) to identify data corresponding tothe detected ultrasonic waves.

The display 360 (e.g., the display 260 of FIG. 2) may include a panel362, a hologram device 364, a projector 366, and/or a control circuitfor controlling them. The panel 362 may be implemented to be, forexample, flexible, transparent, or wearable. The panel 362, togetherwith the touch panel 352, may be configured as one or more modules. Thehologram device 364 may show a three dimensional image in the air usinglight interference. The projector 366 may display an image by projectinglight onto a screen. The screen may be located, for example, inside oroutside the electronic device 301. The interface 370 may include, forexample, an HDMI 372, a USB 374, an optical interface 376, or aD-subminiature (D-sub) 378. The interface 370 may be included in, forexample, the communication interface 270 illustrated in FIG. 2.Additionally or alternatively, the interface 370 may include, forexample, a mobile high-definition link (MHL) interface, a secure digital(SD) card/multi-media card (MMC) interface, or an infrared dataassociation (IrDA) standard interface.

The audio module 380 may convert, for example, sound into an electricalsignal, and vice versa. At least some elements of the audio module 380may be included, for example, in the input/output interface 250illustrated in FIG. 2. The audio module 380 may process soundinformation that is input or output via, for example, a speaker 382, areceiver 384, earphones 386, the microphone 388, and the like.

The camera module 391 (e.g., the camera 280 of FIG. 2) is a devicecapable of shooting a still image and a moving image. According to anembodiment, the camera module 391 may include one or more image sensors(e.g., a front sensor or a rear sensor), a lens, an image signalprocessor (ISP), or a flash (e.g., an LED or xenon lamp). The powermanagement module 395 may manage, for example, the power of theelectronic device 301.

The power management module 395 may include a power managementintegrated circuit (PMIC), a charger IC, or a battery or fuel gauge. ThePMIC may use a wired and/or wireless charging method. Examples of thewireless charging method may include a magnetic resonance method, amagnetic induction method, an electromagnetic wave method, and the like.Additional circuits (e.g., a coil loop, a resonance circuit, arectifier, and the like) for wireless charging may be further included.A battery gauge may measure, for example, the amount of charge remainingin the battery 396 and a voltage, current, or temperature whilecharging. The battery 396 may include, for example, a rechargeablebattery and/or a solar battery.

The indicator 397 may display a particular state, for example, a bootingstate, a message state, a charging state, or the like of the electronicdevice 301 or a part (e.g., the processor 310) of the electronic device301. The motor 398 may convert an electrical signal into a mechanicalvibration and may generate a vibration, haptic effect, or the like. Theelectronic device 301 may include a mobile TV support device (e.g., GPU)capable of processing media data according to a standard, such asdigital multimedia broadcasting (DMB), digital video broadcasting (DVB),mediaFlo^(TM), and the like.

Each of the above-described elements described in the disclosure may beconfigured with one or more components, and the names of thecorresponding elements may be different according to an electronicdevice type. In various embodiments, an electronic device (e.g., theelectronic device 301) may omit some elements or may further includeadditional elements, or some of the elements of the electronic devicemay be combined with each other to configure one entity, in which casethe electronic device may equally perform the functions of thecorresponding elements prior to the combination.

According to various embodiments, an electronic device may include afirst camera, a second camera having an angle of view set to be includedin an angle of view of the first camera, a display, and a processor. Theprocessor is configured to perform: displaying a first image obtainedvia the first camera on the display; detecting information correspondingto the second camera from the first image; activating the second camerawhen determining to activate the second camera based on the informationcorresponding to the second camera; and displaying, on the display, atleast one object corresponding to activation of the first camera and thesecond camera.

According to various embodiments, when a multi-camera mode is set, theprocessor performs control such that the first camera is activated andthe second camera operates in an idle mode.

According to various embodiments, when determining to activate thesecond camera, the processor performs control so as to activate thesecond camera that currently operates in the idle mode.

According to various embodiments, the processor is configured toperform: detecting an image attribute of an area corresponding to theangle of view of the second camera from the first image obtained via thefirst camera; and determining whether to activate the second camerabased on the image attribute.

According to various embodiments, the image attribute may include atleast one from among face detection information of the areacorresponding to the angle of view of the second camera, exposureinformation (a brightness value) of the area corresponding to the angleof view of the second camera, and focus information of an objectincluded in the area corresponding to the angle of view of the secondcamera.

According to various embodiments, the processor performs control so asto perform: detecting a face of an object from the first image obtainedvia the first camera; determining a validity of a facial area of theobject detected from an area corresponding to the angle of view of thesecond camera when the facial area of the object detected from the areacorresponding to the angle of view of the second camera exists in thefirst image; and activating the second camera when determining that thefacial area of the object detected from the area corresponding to theangle of view of the second camera is valid.

According to various embodiments, the processor performs control so asto perform: identifying a brightness value of an area corresponding tothe angle of view of the second camera in the first image; andactivating the second camera when a difference in brightness valuebetween the area corresponding to the angle of view of the second cameraand a remaining area exceeds a reference value.

According to various embodiments, the processor performs control so asto perform: identifying whether an object on which focus is set existsin an area corresponding to the angle of view of the second camera inthe first image obtained via the first camera; and activating the secondcamera when the object on which the focus is set exists in the areacorresponding to the angle of view of the second camera.

According to various embodiments, when the second camera is activated,the processor is configured to modify a form of a capture icon so as tocorrespond to the activation of the first camera and the second camera.

According to various embodiments, the first camera and the second cameraare disposed to be close to each other in the same side of theelectronic device.

FIG. 4 is a flowchart illustrating a process of providing a multi-cameraservice by an electronic device according to various embodiments of thedisclosure. Hereinafter, the electronic device may include the whole ora part (e.g., the processor 220) of the electronic device 201illustrated in FIGS. 2A and 2B.

Referring to FIG. 4, the electronic device may obtain an image via afirst camera of the electronic device in operation 401. For example, theprocessor 220 may control the display 26 so as to display a previewimage obtained via the first camera 282 that is electrically connectedto the electronic device 201. In this instance, the processor 220 mayperform control such that the second camera 284 that is electricallyconnected to the electronic device 201 operates in an idle mode.

The electronic device may obtain information corresponding to a secondcamera from the image obtained via the first camera in operation 403.For example, the processor 220 may identify at least a partcorresponding to a second camera area in a first image obtained via thefirst camera 282. The processor 120 may detect an image attributeassociated with at least a part corresponding to the second camera area.For example, the image attribute of the second camera area may includeat least one of face detection information of the second camera area,exposure information (a brightness value) of the second camera area, andfocus information associated with an object included in the secondcamera area.

In operation 405, the electronic device may activate the second cameraon the basis of information corresponding to the second camera which isdetected from the image obtained via the first camera. For example, theprocessor 220 may determine whether the face of a subject is detectedfrom the second camera area of the image obtained via the first camera282. When a facial area of the subject detected from the second cameraarea is valid, the processor 220 may perform control so as to activatethe second camera 284. For example, the processor 220 may determine thevalidity of the facial area of the subject on the basis of the size ofthe facial area of the subject. For example, the processor 220 maydetermine whether a difference in brightness value exists between thesecond camera area and the remaining area of the image obtained via thefirst camera 282. When the difference in brightness value between thesecond camera area and the remaining area of the image obtained via thefirst camera 282 is greater than a reference value, the processor 220may perform control so as to activate the second camera 284. Forexample, when a subject on which focus is set exists in the secondcamera area of the image obtained via the first camera 282, theprocessor 220 may perform control so as to activate the second camera284. For example, the second camera area may include at least a partcorresponding to the angle of view of the second camera 284 in the imageobtained via the first camera 282.

FIG. 5 is a flowchart illustrating a process of controlling multiplecameras by an electronic device according to various embodiments of thedisclosure. Hereinafter, the operation of obtaining the image via thefirst camera performed in operation 401 of FIG. 4 will be described indetail. Hereinafter, the electronic device may include the whole or apart (e.g., the processor 220) of the electronic device 201 illustratedin FIGS. 2A and 2B.

Referring to FIG. 5, in operation 501, the electronic device may set amulti-camera mode in order to drive the first camera and the secondcamera in parallel. For example, the processor 220 may set theactivation menu of the multi-camera mode on the basis of a user inputdetected via the input/output interface 250. For example, the user inputmay include at least one of an input for selecting a multi-camera modeicon and a gesture input corresponding to a multi-camera mode. Forexample, the processor 220 may execute the multi-camera mode on thebasis of the feature of an application currently executed in theelectronic device 201.

When the multi-camera mode is set, the electronic device may activatethe first camera of the electronic device in operation 503. For example,the processor 220 may perform initial setting of the first camera 282,and may activate an image sensor of the first camera 282.

The electronic device may obtain a preview image via the first camera inoperation 505. For example, the processor 220 may perform control so asto display the preview image obtained via the image sensor of the firstcamera 282 on at least a part of the display 260.

When the multi-camera mode is set, the electronic device may operate thesecond camera of the electronic device in the idle mode in operation507. For example, the processor 220 may perform initial setting of thesecond camera 284, and may control the second camera 284 such that theimage sensor of the second camera 284 maintains a deactivated state. Forexample, the initial setting may include generating an instanceassociated with the second camera 284, allocating memory for driving thesecond camera 284, reading, from the memory 230, a setting parameter foroperating a camera, or the like.

FIG. 6 is a flowchart illustrating a process of controlling amulti-camera service on the basis of the distance to a subject by anelectronic device according to various embodiments of the disclosure.FIG. 7 is a diagram illustrating the configuration for controlling amulti-camera service on the basis of the distance to a subject by anelectronic device according to various embodiments of the disclosure.Hereinafter, the operation of obtaining the second camera informationfrom the image obtained via the first camera performed in operation 403of FIG. 4 will be described in detail. Hereinafter, the electronicdevice may include the whole or a part (e.g., the processor 220) of theelectronic device 201 illustrated in FIGS. 2A and 2B.

Referring to FIG. 6, when an image is obtained via the first camera(operation 401 of FIG. 4), the electronic device may detect the distancebetween the electronic device and an object on which focus is set in theimage obtained via the first camera in operation 601. For example, theprocessor 220 may estimate the distance to the subject on which focus isset, on the basis of the focal distance of the first camera 282 forobtaining the image or depth information of an object included in theimage. For example, the processor 220 may measure the distance to theobject on which focus is set in the image using a separate distancemeasurement sensor, such as an ultrasonic sensor or the like.

In operation 603, the electronic device may determine whether thedistance to the subject on which focus is set exceeds a referencedistance. For example, the reference distance may be set on the basis ofthe minimum focal distance of the second camera 284.

When the distance to the subject on which focus is set exceeds thereference distance, the electronic device may obtain the second camerainformation from the image obtained via the first camera in operation605. For example, when the distance between an electronic device 700 anda subject 720 on which focus is set in an image obtained via a firstcamera 702 exceeds a reference distance as shown in FIG. 7, theprocessor 220 may determine that the electronic device 700 is capable ofcapturing an image using a second camera 703. Accordingly, the processor220 may detect an image attribute of a second camera area from a previewimage obtained via the first camera 702, in order to determine whetherto activate the second camera 703.

When the distance to the subject on which focus is set is less than orequal to the reference distance, the electronic device may deactivatethe multi-camera mode in operation 607. For example, when the distancebetween the electronic device 700 and a subject 710 on which focus isset in the image obtained via the first camera 702 is less than or equalto the reference distance as shown in FIG. 7, the processor 220 maydetermine that the electronic device 700 is incapable of capturing animage using the second camera 703. Accordingly, the processor 220 maydeactivate the multi-camera mode for driving the first camera 702 andthe second camera 703. That is, the processor 220 may restrict drivingof the second camera 703. Additionally or alternatively, when thedistance to the subject 710 on which focus is set exceeds the referencedistance as the electronic device 700 or the subject 710 moves, theprocessor 220 may activate the multi-camera mode. That is, the processor220 may detect the image attribute of the second camera area from thepreview image obtained via the first camera 702 in operation 605.

FIG. 8 is a flowchart illustrating a process of providing a multi-cameraservice on the basis of face detection information by an electronicdevice according to various embodiments of the disclosure. FIGS. 9A to9H are diagrams illustrating screen configurations for providing amulti-camera service on the basis of face detection information by anelectronic device according to various embodiments of the disclosure.Hereinafter, the operation of activating the second camera performed inoperations 403 and 405 of FIG. 4 will be described in detail.Hereinafter, the electronic device may include the whole or a part(e.g., the processor 220) of the electronic device 201 illustrated inFIGS. 2A and 2B.

Referring to FIG. 8, when an image is obtained via the first camera(operation 401 of FIG. 4), the electronic device may detect the face ofa subject from the image obtained via the first camera in operation 801.For example, the processor 220 may drive a face detection algorithm withrespect to an image 900 obtained via the first camera 282, so as todetect a facial area 902 of a subject as illustrated in FIG. 9A.

In operation 803, the electronic device may determine whether a facialarea of the subject which is included in an area corresponding to theangle of view of a second camera exists in the image obtained via thefirst camera. For example, the processor 220 may determine whether afacial area 902-2 of the subject exists in a second camera area 910 ofthe image 900 obtained via the first camera 282, as illustrated in FIG.9B.

When the facial area of the subject included in the second camera areadoes not exist, the electronic device may determine not to activate thesecond camera. For example, when a facial area 942 detected from animage 940 obtained via the first camera 282 is not included in a secondcamera area 944 as illustrated in FIG. 9E, the processor 220 maydetermine that a subject captured by the second camera 284 does notexist. Accordingly, the processor 220 may restrict image capturing usingthe second camera 284. That is, the processor 220 may determine not toactivate the second camera 284.

When the facial area of the subject which is included in the secondcamera area exists, the electronic device may determine whether thefacial area of the subject included in the second camera area is validin operation 805. For example, the processor 220 may determine thevalidity of the corresponding facial area on the basis of the size ofthe facial area of the subject included in the second camera area. Forexample, when the size of the facial area of the subject included in thesecond camera area is less than the minimum reference size, theprocessor 220 may determine that the corresponding facial area isinvalid. When the size of the facial area of the subject included in thesecond camera area is greater than the maximum reference size, theprocessor 220 may determine that the corresponding facial area isinvalid. For example, when only a part of the face of the subject isincluded in the second camera area, the processor 220 may determine thatthe corresponding facial area is invalid.

When the facial area of the subject included in the second camera areais invalid, the electronic device may determine not to activate thesecond camera. For example, when a facial area 952 of a subject includedin a second camera area 954 of an image 950 obtained via the firstcamera 282 is greater than the maximum reference size as illustrated inFIG. 9F, the processor 220 may determine that the corresponding facialarea is invalid. Accordingly, the processor 220 may determine not toactivate the second camera 284. For example, when only a part 964 of thefacial of a subject is included in a second camera area 962 of an image960 obtained via the first camera 282, as illustrated in FIG. 9G, theprocessor 220 may determine that the corresponding facial area isinvalid. Accordingly, the processor 220 may determine not to activatethe second camera 284.

When the facial area of the subject included in the second camera areais valid, the electronic device may activate the second camera inoperation 807. For example, when the facial area 902-2 of the subjectwhich is valid is included in the second camera area 910 of the image900 obtained via the first camera 282 as illustrated in FIG. 9B, theprocessor 220 may activate the second camera 284. Accordingly, theprocessor 220 may control the display 260 so as to display an objectindicating the activated state of the first camera 282 and the secondcamera 284 in the multi-camera mode. For example, the object indicatingthe activated state of the first camera 282 and the second camera 284may include a capture icon 914 which is modified for distinguishing acapture event using at least one of the first camera 282 and the secondcamera 284. For example, the object indicating the activated state ofthe first camera 282 and the second camera 284 may include a pluralityof capture icons corresponding to different capture events. Additionallyor alternatively, when the processor 220 activates the second camera284, the processor 220 may control the display 260 so as to display animage 912 (e.g., a preview image) obtained via the second camera 284 inat least a part of the image 900 obtained via the first camera 282 asillustrated in FIG. 9B. For example, when the processor 220 activatesthe second camera 284, the processor 220 may control the display 260 soas to display an image 920 obtained via the first camera 282 and animage 922 obtained via the second camera 284 in different areas whichare vertically divided. For example, when the processor 220 activatesthe second camera 284, the processor 220 may control the display 260 soas to display an image 930 obtained via the first camera 282 and animage 932 obtained via the second camera 284 in different areas whichare horizontally divided. In this instance, the processor 220 may changea screen configuration of the image 930 obtained via the first camera282 and the image 932 obtained via the second camera 284 which aredisplayed on the display 260. For example, the screen configuration mayinclude at least one of the location, size, and ratio of a display area.

In operation 809, the electronic device determines whether theoccurrence of a capture event is detected. For example, the processor220 may determine whether a user input corresponding to the capture icon914 is detected, as illustrated in FIG. 9B. For example, the processor220 may determine whether a gesture input corresponding to a captureevent is detected.

When a capture event does not occur, the electronic device may determinewhether a face detection duration exceeds a reference time in operation811. For example, the processor 220 may determine whether an availabletime for face detection performed in operation 801 expires.

When the face detection duration is less than the reference time, theelectronic device may identify whether occurrence of a capture event isdetected in operation 809.

When the face detection duration is greater than or equal to thereference time, the electronic device may determine that the availabletime for face detection expires. In this instance, the electronic devicemay obtain an image via the first camera in operation 401 of FIG. 4.

When it is detected that a capture event occurs, the electronic devicecaptures an image using at least one camera on the basis of the captureevent in operation 813. For example, the processor 220 may capture animage using at least one of the first camera 282 and the second camera284 on the basis of a capture event type. For example, the types ofcapture events may be classified on the basis of at least one of agesture for capture, the strength of pressure, a touch duration, thenumber of touches, and a capture icon type, and the like.

According to various embodiments of the disclosure, the electronicdevice may determine whether the face of the subject is detected from anarea corresponding to the angle of view of the second camera in theimage obtained via the first camera. For example, the processor 220 mayapply a face detection algorithm to the entirety of the image obtainedvia the first camera 282 or to at least a part corresponding to thesecond camera area, so as to detect a facial area included in the secondcamera area.

According to various embodiments of the disclosure, when a plurality offacial areas are detected from the second camera area, the electronicdevice may determine whether each of the facial areas is valid. When atleast one facial area is valid from among the plurality of facial areas,the electronic device may determine that the electronic device iscapable of capturing an image using the second camera. Accordingly, theelectronic device may activate the second camera. For example, when apart 974 of the face of a first subject and the entire area 976 of theface of a second subject are included in a second camera area 972 of animage 970 obtained via the first camera 282 as illustrated in FIG. 9H,the processor 220 may determine that the facial area of the subjectincluded in the second camera area 972 is valid. Accordingly, theprocessor 220 may activate the second camera 284.

FIG. 10 is a flowchart illustrating a process of capturing an image byan electronic device according to various embodiments of the disclosure.FIGS. 11A to 11F are diagrams illustrating images captured by anelectronic device according to various embodiments of the disclosure.Hereinafter, the operation of capturing the image executed in operation813 of FIG. 8 will be described. Hereinafter, the electronic device mayinclude the whole or a part (e.g., the processor 220) of the electronicdevice 201 illustrated in FIGS. 2A and 2B.

Referring to FIG. 10, when a capture event occurs in the state in whichthe first camera and the second camera are activated (e.g., operation809 of FIG. 8), the electronic device may determine whether occurrenceof a first capture event is detected in operation 1001. For example,when the first camera 282 and the second camera 284 are activated, theprocessor 220 may control the display 260 so as to display an objectcorresponding to the activated state of the first camera 282 and thesecond camera 284 as illustrated in FIG. 11A. For example, the objectcorresponding to the activated state may include a capture icon 1120modified to distinguish a capture event using at least one camera 282and 284. The capture icon 1120 may include a user select area 1122 for acapture event and guide information 1124 and 1126 for distinguishing acapture event. The processor 220 may determine whether a first captureevent is detected on the basis of the type of an input of the captureicon 1120. Additionally or alternatively, when the first camera 282 andthe second camera 284 are activated, the processor 220 may control thedisplay 260 so as to display an image 1112 obtained via the secondcamera 284 to overlap at least a part of an image 1100 obtained via thefirst camera 282 as illustrated in FIG. 11A. In this instance, the image1112 obtained via the second camera 284 may correspond to a secondcamera area 1110 of the image 1100 obtained via the first camera 282.

In operation 1003, the electronic device may capture an image via thefirst camera when it is detected that a first capture event occurs. Forexample, when a drag input 1150 provided to the left of the user selectarea 1122 of the capture icon 1120 is detected as illustrated in FIG.11C, the processor 220 may determine that the first capture eventoccurs. Accordingly, the processor 220 may capture an image 1160 via thefirst camera 282.

In operation 1005, when the first capture event does not occur, theelectronic device may determine whether occurrence of a second captureevent occurs in operation 1005.

In operation 1007, the electronic device may capture an image via thesecond camera when it is detected that the second capture event occurs.For example, when a drag input 1170 provided to the right of the userselect area 1122 of the capture icon 1120 is detected as illustrated inFIG. 11D, the processor 220 may determine that the second capture eventoccurs. Accordingly, the processor 220 may capture an image 1180 via thesecond camera 284.

When the first capture event and the second capture event do not occur,the electronic device may determine that a third capture event occurs inoperation 1009. Accordingly, the electronic device may capture imagesvia the first camera and the second camera. For example, when a touchinput 1130 to the user select area 1122 of the capture icon 1120 isdetected as illustrated in FIG. 11B, the processor 220 may determinethat the third capture event occurs. Accordingly, the processor 220 maycapture images 1140 via the first camera 282 and the second camera 284.

According to an embodiment, when the images 1140 are captured via thefirst camera 282 and the second camera 284, the electronic device maycombine the images captured via the first camera 282 and the secondcamera 284 to form a single image and may store the single combinedimage.

According to an embodiment, when the images 1140 are captured via thefirst camera 282 and the second camera 284, the electronic device mayseparately store the images captured respectively by the first camera282 and the second camera 284.

According to various embodiments of the disclosure the electronic devicemay change a capture event type using the capture icon 1122 on the basisof the result of analyzing the image obtained by a camera or a userinput. For example, the processor 220 may change a capture event typematched to the capture icon 1122, on the basis of the movement of asubject or a user input to an area corresponding to the guideinformation 1124 and 1126. For example, when the movement of the subjectincluded in the second camera area 1110 is detected, the processor 220may identify the magnitude of the movement of the subject. When themagnitude of the movement of the subject included in the second cameraarea 1110 is less than a reference magnitude, the processor 220 maychange the capture event of the second camera 284 to video shooting1190, as illustrated in FIG. 11E. In this instance, the processor 220may maintain the capture event of the first camera 282 as imagecapturing 1124. Additionally or alternatively, when the magnitude of themovement of the subject included in the second camera area 1110 exceedsthe reference magnitude, the processor 220 may change the capture eventof the second camera 284 to slow video shooting 1194, as illustrated inFIG. 11E. In this instance, the processor 220 may change the captureevent of the first camera 282 to normal video shooting 1192. Forexample, when a user input to an area corresponding to the guideinformation 1126 of the second camera 284 is detected, the processor 220may change the capture event of the second camera 284 in order of imagecapturing, video shooting, slow video shooting, and fast video shooting,on the basis of a user input.

FIG. 12 is a flowchart illustrating a process of providing amulti-camera service on the basis of the brightness value of an image byan electronic device according to various embodiments of the disclosure.FIGS. 13A and 13B are diagrams illustrating screen configurations forproviding a multi-camera service on the basis of backlight informationof a subject by an electronic device according to various embodiments ofthe disclosure. FIGS. 14A and 14B are diagrams illustrating screenconfigurations for providing a multi-camera service on the basis of thedifference in brightness value in an image by an electronic deviceaccording to various embodiments of the disclosure. Hereinafter, theoperation of activating the second camera performed in operations 403and 405 of FIG. 4 will be described in detail. Hereinafter, theelectronic device may include the whole or a part (e.g., the processor220) of the electronic device 201 illustrated in FIGS. 2A and 2B.

Referring to FIG. 12, when an image is obtained via the first camera(operation 401 of FIG. 4), the electronic device may determine a secondcamera area from the image obtained via the first camera in operation1201. For example, when an image 1300 is obtained via the first camera282 as illustrated in FIG. 13A, the processor 220 may identify a secondcamera area 1310 from the corresponding image 1300. For example, when animage 1400 is obtained via the first camera 282 as illustrated in FIG.14A, the processor 220 may identify a second camera area 1410 from thecorresponding image 1400.

In operation 1203, the electronic device may detect the brightness valueof the second camera area from the image obtained via the first camera.For example, the processor 220 may divide the image obtained via thefirst camera 282 into a plurality of areas, and may detect thebrightness value of each area. The processor 220 may determine thebrightness value of at least one area corresponding to the second cameraarea from among the plurality of areas, to be the brightness value ofthe second camera area.

In operation 1205, the electronic device may determine whether thedifference in brightness value exists between the second camera area andthe remaining area in the image obtained via the first camera. Forexample, the processor 220 may determine whether the difference inbrightness value between the second camera area and the remaining areaof the image obtained via the first camera 282 exceeds a referencevalue.

In operation 1207, when the difference in brightness value existsbetween the second camera area and the remaining area in the imageobtained via the first camera, the electronic device may determine thatimage capturing using the second camera is valid. Accordingly, theelectronic device may change the second camera currently operating in anidle mode into an activation mode For example, when an object 1312 isbacklit, which is included in the second camera area 1310 in the image1300 obtained via the first camera 282, as illustrated in FIG. 13A, thebrightness value of the second camera area 1310 may be lower than thebrightness value of the remaining area due to the backlight on theobject 1312. In this instance, the processor 220 may control the secondcamera 284 to change to the activation mode. When the second camera 284is activated, the processor 220 may change a capture icon 1330 in orderto perform capturing in the multi-camera mode, as illustrated in FIG.13B. Additionally or alternatively, when the second camera 284 isactivated, the processor 220 may control the display 260 so as todisplay an image 1320 obtained via the second camera 284 to bedistinguished from the image 1300 obtained via the first camera 282. Forexample, when a bright object 1412 exists in a second camera area 1410in the image 1400 obtained via the first camera 282, as illustrated inFIG. 14A, the brightness value of the second camera area 1410 may behigher than the brightness value of the remaining area due to thebrightness value of the object 1412. In this instance, the processor 220may control the second camera 284 to change to the activation mode. Whenthe second camera 284 is activated, the processor 220 may change acapture icon 1430 in order to perform capturing in the multi-cameramode, as illustrated in FIG. 14B. Additionally or alternatively, whenthe second camera 284 is activated, the processor 220 may control thedisplay 260 so as to display an image 1420 obtained via the secondcamera 284 to be distinguished from the image 1400 obtained via thefirst camera 282.

According to an embodiment, when an object exists in an area whichcorresponds to the angle of view of the second camera and has abrightness value lower than a reference value in the image obtained viathe first camera, the electronic device may activate the second camerain order to identify the state of an image obtained by the secondcamera. For example, when a subject included in the second camera areais backlit, the processor 220 may change the second camera 284 to theactivation mode.

FIG. 15 is a flowchart illustrating a process of providing amulti-camera service on the basis of the location of an object by anelectronic device according to various embodiments of the disclosure.FIGS. 16A and 16B are diagrams illustrating screen configurations forproviding a multi-camera service on the basis of focus settinginformation associated with a second camera area according to variousembodiments of the disclosure. FIGS. 17A and 17B are diagramsillustrating screen configurations for providing a multi-camera serviceon the basis of movement information of an object on which focus is setaccording to various embodiments of the disclosure. Hereinafter, theoperation of activating the second camera performed in operations 403and 405 of FIG. 4 will be described in detail. Hereinafter, theelectronic device may include the whole or a part (e.g., the processor220) of the electronic device 201 illustrated in FIGS. 2A and 2B.

Referring to FIG. 15, when an image is obtained via the first camera(operation 401 of FIG. 4), the electronic device may determine whether auser input to the image obtained via the first camera is detected inoperation 1501. For example, when the second camera 284 operates in anidle mode in the state in which the multi-camera mode is set, theprocessor 220 may perform control so as to display, on the display 260,a preview image 1600 obtained via the first camera 282. In thisinstance, focus may be set on a first object 1602 among the first object1602 and a second object 1612 included in the preview image 1600. Theprocessor 220 may identify whether a touch input (e.g., a tap input) tothe preview image which is obtained via the first camera 282 and isdisplayed on the display 260.

When a user input to the image obtained via the first camera isdetected, the electronic device may determine whether a point at whichthe user input is provided is included in a second camera area inoperation 1503. For example, the processor 220 may identify whether apoint corresponding to a touch input (e.g., a tap input) provided to thepreview image, which is obtained via the first camera 282 and isdisplayed on the display 260, is included in the second camera area.

When the user input point is included in the second camera area, theelectronic device may activate the second camera in operation 1505. Forexample, when a user input point 1620 is included in a second cameraarea 1610 as illustrated in FIG. 16B, the processor 220 may determinethat focus is set on the object 1612 corresponding to the user inputpoint 1620 in the second camera area 1610. That is, the processor 220may recognize the object 1612 corresponding to the user input point 1620in the second camera area 1610, as a main object for shooting.Accordingly, the processor 220 may determine that image capturing usingthe second camera 284 is valid, and may perform control so as to changethe second camera 284 currently operating in the idle mode into theactivation mode. When the second camera 284 is activated, the processor220 may change a capture icon 1650 so as to correspond to themulti-camera mode. Additionally or alternatively, when the first camera282 and the second camera 284 are activated, the processor 220 maycontrol the display 260 so as to display an image 1630 obtained via thesecond camera 284 to be distinguished from the image obtained via thefirst camera 282. For example, the processor 220 may control the display260 so as to display the image 1630 obtained via the second camera 284to overlap at least a part of the image obtained via the first camera282.

When the user input point is not included in the second camera area, theelectronic device may set an object corresponding to a user input as amain object for shooting in operation 1507. For example, when a userinput to an image 1700 obtained via the first camera 282 is detected,the processor 220 may set focus of the first camera 282 on an object1720 corresponding to the user input point as illustrated in FIG. 17A.

The electronic device may determine whether movement of the main objectis detected in operation 1509. For example, the processor 220 maycompare preview images periodically obtained via the first camera 282 soas to determine whether the location of the main object 1720 is changed.When the location of the main object 1720 is changed, the processor 220may determine that movement of the main object 1720 is detected.

When the movement of the main object is detected, the electronic devicemay determine whether the main object enters the second camera area inoperation 1511. For example, the processor 220 may determine whether themain object 1720 is located in a second camera area 1710 as illustratedin FIG. 17B.

When the main object is included in the second camera area, theelectronic device may activate the second camera in operation 1505. Forexample, when the main object 1720 on which focus is set moves to thesecond camera area 1710 as illustrated in FIG. 17B, the processor 220may determine that image capturing of the main object using the secondcamera 284 is valid. Accordingly, the processor 220 may perform controlso as to change the second camera 284 currently operating in the idlemode to the activation mode. When the second camera 284 is activated,the processor 220 may change a capture icon 1750 so as to correspond tothe multi-camera mode. That is, the processor 220 may modify a captureicon 1750 so as to indicate the activated state of the first camera 282and the second camera 284. Additionally or alternatively, when the firstcamera 282 and the second camera 284 are activated, the processor 220may control the display 260 so as to display an image 1740 obtained viathe second camera 284 to overlap at least a part of the image obtainedvia the first camera 282.

FIG. 18 is a flowchart illustrating a process by which an electronicdevice sets a second camera area in an image obtained via a first cameraaccording to various embodiment of the disclosure. Hereinafter, theelectronic device may include the whole or a part (e.g., the processor220) of the electronic device 201 illustrated in FIGS. 2A and 2B.

Referring to FIG. 18, the electronic device may determine whether amulti-camera mode is set in operation 1801. For example, the processor220 may determine whether a user input for setting the multi-camera modeis detected via the input/output interface 250.

When the multi-camera mode is set, the electronic device may obtain afirst image via a first camera in operation 1803. For example, when themulti-camera mode is set, the processor 220 may perform initial settingfor activating the first camera 282 and may activate an image sensor ofthe first camera 282. The processor 220 may control the display 260 soas to display a preview image obtained via the first camera 282. In thisinstance, the processor 220 may perform initial setting for activatingthe second camera 284, and may perform control such that the secondcamera 284 operates in the idle mode that deactivates an image sensor ofthe second camera 284.

In operation 1805, the electronic device determines whether theoccurrence of an area matching event is detected. For example, theprocessor 220 may determine whether a period arrives, which is forsetting the location of a second camera area in the image obtained viathe first camera 282.

When the area matching event does not occur, the electronic device mayobtain a first image via the first camera in operation 1803. Forexample, the processor 220 may determine whether to activate a secondcamera on the basis of an image attribute of a second camera area of thefirst image, like operations 401 to 405 of FIG. 4.

When it is detected that the area matching event occurs, the electronicdevice may activate the second camera to match the location of thesecond camera area of the first image obtained via the first camera inoperation 1807.

In operation 1809, the electronic device may obtain a second image viathe second camera. For example, the processor 220 may identify a secondimage corresponding to the angle of view of the second camera area viathe second camera 284.

In operation 1811, the electronic device may detect an area that matchesthe second image, from the first image. For example, the processor 220may sequentially move the second image on the basis of the second cameraarea of the first image, so as to detect the area that matches thesecond image.

In operation 1813, the electronic device may set the area that matchesthe second image, as the second camera area in the first image.

When the second camera area of the first image is set, the electronicdevice may change the second camera to an idle mode in operation 1815.For example, the processor 220 may deactivate the image sensor of thesecond camera 284 in the state of maintaining the initial setting of thesecond camera 284.

According to an embodiment, when it is detected that the area matchingevent occurs in the state in which the first camera and the secondcamera are activated, the electronic device may compare the image of thefirst camera and the image of the second camera so as to set thelocation of the second camera area in operations 1811 to 1813.

FIG. 19 is a flowchart illustrating a process by which an electronicdevice controls the size of a second camera area in an image obtainedvia a first camera according to various embodiment of the disclosure.FIGS. 20A and 20B are diagrams illustrating screen configurations forcontrolling the size of a second camera area in an image obtained via afirst camera by an electronic device according to various embodiment ofthe disclosure. Hereinafter, the electronic device may include the wholeor a part (e.g., the processor 220) of the electronic device 201illustrated in FIGS. 2A and 2B.

Referring to FIG. 19, the electronic device may display, on a display,images obtained via a first camera and a second camera according to amulti-camera mode, in operation 1901. For example, the processor 220 mayactivate the second camera 284 on the basis of an image attribute of asecond camera area in an image obtained via the first camera 282, likeoperations 401 to 405 of FIG. 4. When the first camera 282 and thesecond camera 284 are activated, the processor 220 may control thedisplay 260 so as to display an image 2020 obtained via the secondcamera 284 to overlap at least a part of an image 2000 obtained via thefirst camera 282 as illustrated in FIG. 20A.

In operation 1903, the electronic device may determine whether the sizeof the second camera area is changed in the image obtained via the firstcamera. For example, the processor 220 may determine whether the size ofa second camera area 2010 is changed on the basis of a user input 2030to the second camera area 2010 of the image 2000 obtained via the firstcamera 282, as illustrated in FIG. 20B. For example, when an object(subject) on which focus is set exists in the second camera area 2010,the processor 220 may determine whether to change the size of the secondcamera area 2010 on the basis of the size of the object.

When the size of the second camera area is changed, the electronicdevice may determine whether to update the angle of view of a secondcamera to correspond to the size of the second camera area in operation1905. For example, the processor 220 may compare the angle of view of acamera corresponding to the size of the second camera area and themaximum angle of view and the minimum angle of view of the second camera284, and may determine whether updating of the angle of view of thesecond camera 284 is allowed. For example, when the angle of viewcorresponding to the size of the second camera area is greater than themaximum angle of view of the second camera 284, or is less than theminimum angle of view of the second camera 284, the processor 220 maydetermine that updating of the angle of view of the second camera 284 isnot allowed.

When it is determined that updating of the angle of view of the secondcamera to correspond to the size of the second camera area is notallocated, the electronic device may output warning information in orderto indicate that changing of the angle of view of the second camera isrestricted. For example, the processor 220 may output warninginformation using at least one notification property from among agraphic, a sound, and a vibration.

When updating of the angle of view of the second camera to correspond tothe size of the second camera area is allowed, the electronic device mayupdate the angle of view of the second camera so as to correspond to thesize of the second camera area in operation 1907.

In operation 1909, the electronic device may update the image that isobtained via the second camera and is displayed on the display to animage obtained at the updated angle of view of the second camera. Forexample, the processor 220 may control the display 260 so as to displayan image 2040 that is magnified as the angle of view of the secondcamera 284 changes, as illustrated in FIG. 20B. For example, theprocessor 220 may change the magnification of an image 2040 obtained viathe second camera 284 to correspond to the size ratio (a ratio of widthto length) of the second camera area 2030.

FIG. 21 is a flowchart illustrating a process by which an electronicdevice determines the size of a second camera area on the basis of thesize of an object on which focus is set according to various embodimentsof the disclosure. Hereinafter, the operation of determining whether tochange the size of the second camera area performed in operation 1903 ofFIG. 19 will be described in detail. Hereinafter, the electronic devicemay include the whole or a part (e.g., the processor 220) of theelectronic device 201 illustrated in FIGS. 2A and 2B.

Referring to FIG. 21, when images obtained via a first camera and asecond camera are displayed on a display (e.g., operation 1901 of FIG.19), an electronic device may determine whether focus is set on anobject included in a second camera area in operation 2101.

When focus is set on the object included in the second camera area, theelectronic device may detect the size of the object on which focus isset from the second camera area in operation 2103. For example, whenfocus is set on the object in the second camera area via the firstcamera 282, the processor 220 may detect the size of the correspondingobject. For example, when focus is set on the object in the secondcamera area by the second camera 284, the processor 220 may detect thesize of the corresponding object.

In operation 2105, the electronic device may determine the size of thesecond camera area on the basis of the size of the object on which focusis set in the second camera area. For example, the processor 220 maydetermine the angle of view of the second camera 284 to be close to thesize of the object on which focus is set.

In operation 2107, the electronic device may determine whether to changethe size of an area corresponding to the angle of view of the secondcamera in the image obtained via the first camera on the basis of thesize of the second camera area which is determined to correspond to thesize of the object on which focus is set. For example, the processor 220may compare the size of the second camera area displayed on the display260 and the size of the second camera area determined on the basis ofthe size of the object on which focus is set. For example, when the sizeof the second camera area displayed on the display 260 is the same asthe size of the second camera area determined on the basis of the sizeof the object on which focus is set, the processor 220 may determine notto change the size of the second camera area displayed on the display260. When the size of the second camera area displayed on the display260 is different from the size of the second camera area determined onthe basis of the size of the object on which focus is set, the processor220 may determine to change the size of the second camera area displayedon the display 260.

FIG. 22 is a flowchart illustrating a process of controlling a zoomfunction by an electronic device according to various embodiments of thedisclosure. FIGS. 23A and 23B are diagrams illustrating screenconfigurations for controlling a zoom function of a second camera by anelectronic device according to various embodiments of the disclosure.FIGS. 24A to 24C are diagrams illustrating screen configurations forcontrolling a zoom function of a first camera by an electronic deviceaccording to various embodiments of the disclosure. Hereinafter, theelectronic device may include the whole or a part (e.g., the processor220) of the electronic device 201 illustrated in FIGS. 2A and 2B.

Referring to FIG. 22, the electronic device may display, on a display,images obtained via a first camera and a second camera according to amulti-camera mode, in operation 2201. For example, when the first camera282 and the second camera 284 are activated, like operations 401 to 405of FIG. 4, the processor 220 may display an image 2300 obtained via thefirst camera 282 and an image 2320 obtained via the second camera 284 tobe distinguished from each other, as illustrated in FIG. 23A. Forexample, the processor 220 may control the display 260 so as to displaythe image 2320 obtained via the second camera 284 to overlap at least apart of the image 2300 obtained via the first camera 282.

In operation 2203, the electronic device may determine whetheroccurrence of an event for controlling a zoom function is detected. Forexample, the processor 220 may determine whether a touch input 2330(e.g., a drag input) for controlling the zoom function of the firstcamera 282 or the second camera 284 is detected, as illustrated in FIG.23A.

When it is detected that the event for controlling the zoom function isdetected, the electronic device may determine whether an eventoccurrence area where the event for controlling the zoom function occursis included in a second camera area in operation 2205. For example, theprocessor 220 may determine whether a point at which a touch input forcontrolling the zoom function of a camera is detected (e.g., the startpoint of a drag input) is included in a second camera area 2310.

In operation 2207, when the event occurrence area where the event forcontrolling a zoom function occurs is included in the second cameraarea, the electronic device may control the zoom of the second camera tocorrespond to the event for controlling the zoom function. For example,when a user input 2330 for controlling a zoom function is detectedwithin the second camera area 2310 as illustrated in FIG. 23A, theprocessor 220 may control the zoom of the second camera 284 tocorrespond to the user input 2330. For example, when the second camera284 zooms in to correspond to the user input 2330, the processor 220 maycontrol the display 260 so as to display an image 2340 obtained viazooming-in by the second camera 284, as illustrated in FIG. 23B.Additionally or alternatively, the processor 220 may update the size ofthe second camera area to correspond to a change in the angle of viewwhich is made by zooming-in by the second camera 284, as illustrated indiagram 2350.

In operation 2209, when the event occurrence area where the event forcontrolling a zoom function occurs is not included in the second cameraarea, the electronic device may control the zoom of the first camera tocorrespond to the event for controlling the zoom function in operation2209. For example, when a user input 2430 for controlling a zoomfunction is detected in an area remaining after excluding a secondcamera area 2410 from an image 2400 obtained via the first camera 282,as illustrated in FIG. 24A, the processor 220 may control the zoom ofthe first camera 282 to correspond to the user input 2430. For example,when the first camera 282 zooms in to correspond to the user input 2430,the processor 220 may control the display 260 so as to display an imageobtained via zooming-in by the first camera 282, as illustrated in FIG.24B. In this instance, an area corresponding to the angle of view of thesecond camera 284 is magnified by zooming-in by the first camera 282,and thus, the processor 220 may update the size of the second cameraarea as illustrated in diagram 2440. Additionally or alternatively, whena user input 2450 for controlling a zoom function is detected in an arearemaining after excluding a second camera area 2440 from the image 2400obtained via the first camera 282, as illustrated in FIG. 24B, theprocessor 220 may enable the first camera 282 to zoom in to correspondto the user input 2450 as illustrated in FIG. 24C. In this instance, theprocessor 220 may set the angle of view of the first camera 282associated with zooming-in by the first camera 282 and the angle of viewof the second camera 284 to be the same as each other as illustrated indiagram 2460.

FIGS. 25A and 25B are diagrams illustrating screen configurations forchanging a display area of a camera by an electronic device according tovarious embodiments of the disclosure. Hereinafter, the electronicdevice may include the whole or a part (e.g., the processor 220) of theelectronic device 201 illustrated in FIGS. 2A and 2B.

According to an embodiment, the electronic device may display, on adisplay, images obtained via a first camera and a second cameraaccording to a multi-camera mode. For example, when the first camera 282and the second camera 284 are activated, the processor 220 may controlthe display 260 so as to display an image 2520 obtained via the secondcamera 284 to overlap at least a part of an image 2500 obtained via thefirst camera 282 as illustrated in FIG. 25A.

According to an embodiment, when a user input to the image obtained viathe second camera is detected, the electronic device may change areaswhere the images obtained by the first camera and the second camera aredisplayed. For example, when a touch input 2530 to the image 2520obtained via the second camera 284 is detected as illustrated in FIG.25A, the processor 220 may change the display area for the image 2500obtained via the first camera 282 and the display area for the image2520 obtained via the second camera 284. For example, the processor 220may control the display 260 so as to display an image 2550 obtained viathe first camera 282 to overlap at least a part of an image 2540obtained via the second camera 284, as illustrated in FIG. 25B.

According to various embodiments of the disclosure, an operation methodof an electronic device may include: an operation of displaying a firstimage obtained via a first camera of the electronic device on a displayof the electronic device; an operation of detecting, from the firstimage, information corresponding to a second camera configured to havean angle of view included in an angle of view of the first camera; anoperation of activating the second camera when determining to activatethe second camera based on the information corresponding to the secondcamera; and an operation of displaying, on the display, at least oneimage corresponding to activation of the first camera and the secondcamera.

According to various embodiments, the method may further include anoperation of activating the first camera and setting the second camerato operate in an idle mode when a multi-camera mode is set.

According to various embodiments, the operation of activating the secondcamera may include an operation of activating the second camera thatcurrently operates in the idle mode when it is determined to activatethe second camera on the basis of the information corresponding to thesecond camera.

According to various embodiments, the operation of activating the secondcamera may include: an operation of detecting an image attribute of anarea corresponding to the angle of view of the second camera from thefirst image obtained via the first camera; an operation of determiningwhether to activate the second camera based on the image attribute; andan operation of activating the second camera when determining toactivate the second camera.

According to various embodiments, the image attribute may include atleast one from among face detection information of the areacorresponding to the angle of view of the second camera, exposureinformation (a brightness value) of the area corresponding to the angleof view of the second camera, and focus information of an objectincluded in the area corresponding to the angle of view of the secondcamera.

According to various embodiments, the operation of activating the secondcamera may include: an operation of detecting the face of an object fromthe first image obtained via the first camera; an operation ofdetermining the validity of a facial area of the object detected from anarea corresponding to the angle of view of the second camera when thefacial area of the object detected from the area corresponding to theangle of view of the second camera exists in the first image; and anoperation of activating the second camera when it is determined that thefacial area of the object detected from the area corresponding to theangle of view of the second camera is valid.

According to various embodiments, the operation of determining thevalidity of the facial area may include: an operation of determining thevalidity of the facial area of the object detected from the areacorresponding to the angle of view of the second camera on the basis ofthe size of the facial area of the object detected from the areacorresponding to the angle of view of the second camera.

According to various embodiments, the operation of activating the secondcamera may include: an operation of identifying the brightness value ofthe area corresponding to the angle of view of the second camera in thefirst image; and an operation of activating the second camera when thedifference in brightness value between the area corresponding to theangle of view of the second camera in the first image and the remainingarea exceeds a reference value.

According to various embodiments, the operation of activating the secondcamera may include: an operation of determining whether an object onwhich focus is set exists in the area corresponding to the angle of viewof the second camera in the first image obtained via the first camera;and an operation of activating the second camera when the object onwhich the focus is set exists in the area corresponding to the angle ofview of the second camera.

According to various embodiments, the operation of displaying the atleast one object may include an operation of modifying the form of acapture icon so as to correspond to the activation of the first cameraand the second camera when the second camera is activated.

The term “module” as used herein may include a unit consisting ofhardware, software, or firmware, and may, for example, be usedinterchangeably with the term “logic”, “logical block”, “component”,“circuit”, or the like. The “module” may be an integrated component, ora minimum unit for performing one or more functions or a part thereofThe “module” may be mechanically or electronically implemented and mayinclude, for example, an Application-Specific Integrated Circuit (ASIC)chip, a Field-Programmable Gate Arrays (FPGA), or a programmable-logicdevice, which has been known or are to be developed in the future, forperforming certain operations.

At least some of devices (e.g., modules or functions thereof) or methods(e.g., operations) according to various embodiments may be implementedby an instruction which is stored a computer-readable storage medium(e.g., the memory 230) in the form of a program module. The instruction,when executed by a processor (e.g., the processor 220 or 520), may causethe one or more processors to execute the function corresponding to theinstruction. The computer-readable storage medium may include a harddisk, a floppy disk, a magnetic medium (e.g., a magnetic tape), anOptical Media (e.g., CD-ROM, DVD), a Magneto-Optical Media (e.g., afloptical disk), an inner memory, etc. The instruction may include acode made by a complier or a code that can be executed by aninterpreter. The programming module according to the disclosure mayinclude one or more of the aforementioned components or may furtherinclude other additional components, or some of the aforementionedcomponents may be omitted.

Operations performed by a module, a programming module, or otherelements according to various embodiments may be executed sequentially,in parallel, repeatedly, or in a heuristic manner At least someoperations may be executed according to another sequence, may beomitted, or may further include other operations.

The embodiments disclosed herein are proposed to help with descriptionand comprehension of disclosed technical contents, and do not limit thescope of various embodiments of the disclosure. Therefore, the scope ofthe various embodiments of the disclosure should be construed asincluding all modifications or various other embodiments based on thespirit and scope of the various embodiments of the disclosure.

1. An electronic device, comprising: a first camera; a second camerahaving an angle of view set to be included in an angle of view of thefirst camera; a display; and a processor, wherein the processor isconfigured to perform: displaying a first image obtained via the firstcamera on the display; detecting information corresponding to the secondcamera from the first image; activating the second camera whendetermining to activate the second camera based on the informationcorresponding to the second camera; and displaying, on the display, atleast one object corresponding to activation of the first camera and thesecond camera.
 2. The electronic device of claim 1, wherein, when amulti-camera mode is set, the processor performs control such that thefirst camera is activated and the second camera operates in an idlemode.
 3. The electronic device as claimed in claim 2, wherein, whendetermining to activate the second camera, the processor performscontrol so as to activate the second camera that currently operates inthe idle mode.
 4. The electronic device as claimed in claim 1, wherein,the processor is configured to perform: detecting an image attribute ofan area corresponding to the angle of view of the second camera from thefirst image obtained via the first camera; and determining whether toactivate the second camera based on the image attribute.
 5. Theelectronic device as claimed in claim 4, wherein the image attributecomprises at least one from among face detection information of the areacorresponding to the angle of view of the second camera, exposureinformation (a brightness value) of the area corresponding to the angleof view of the second camera, and focus information of an objectincluded in the area corresponding to the angle of view of the secondcamera.
 6. The electronic device as claimed in claim 1, wherein theprocessor performs control so as to perform: detecting a face of anobject from the first image obtained via the first camera; determining avalidity of a facial area of the object detected from an areacorresponding to the angle of view of the second camera when the facialarea of the object detected from the area corresponding to the angle ofview of the second camera exists in the first image; and activating thesecond camera when determining that the facial area of the objectdetected from the area corresponding to the angle of view of the secondcamera is valid.
 7. The electronic device as claimed in claim 1, whereinthe processor performs control so as to perform: identifying abrightness value of an area corresponding to the angle of view of thesecond camera in the first image; and activating the second camera whena difference in brightness value between the area corresponding to theangle of view of the second camera and a remaining area exceeds areference value.
 8. The electronic device as claimed in claim 1, whereinthe processor performs control so as to perform: identifying whether anobject on which focus is set exists in an area corresponding to theangle of view of the second camera in the first image obtained via thefirst camera; and activating the second camera when the object on whichthe focus is set exists in the area corresponding to the angle of viewof the second camera.
 9. The electronic device as claimed in claim 1,wherein, when the second camera is activated, the processor isconfigured to modify a form of a capture icon so as to correspond to theactivation of the first camera and the second camera.
 10. The electronicdevice as claimed in claim 1, wherein the first camera and the secondcamera are disposed to be close to each other in the same side of theelectronic device.
 11. An operation method of an electronic device, themethod comprising: displaying a first image obtained via a first cameraof the electronic device on a display of the electronic device;detecting, from the first image, information corresponding to a secondcamera configured to have an angle of view included in an angle of viewof the first camera; activating the second camera when determining toactivate the second camera based on the information corresponding to thesecond camera; and displaying, on the display, at least one imagecorresponding to activation of the first camera and the second camera.12. The method as claimed in claim 11, further comprising: activatingthe first camera and setting the second camera to operate in an idlemode when a multi-camera mode is set.
 13. The method as claimed in claim11, wherein the activating of the second camera comprises: detecting animage attribute of an area corresponding to the angle of view of thesecond camera from the first image obtained via the first camera;determining whether to activate the second camera based on the imageattribute; and activating the second camera when determining to activatethe second camera.
 14. The method as claimed in claim 13, wherein theimage attribute comprises at least one from among face detectioninformation of the area corresponding to the angle of view of the secondcamera in the first image, a brightness value of the area correspondingto the angle of view of the second camera, and focus information of thearea corresponding to the angle of view of the second camera.
 15. Themethod as claimed in claim 11, wherein the displaying of the at leastone object comprises: modifying a form of a capture icon so as tocorrespond to the activation of the first camera and the second camerawhen the second camera is activated.